function initPage() {

	$('div.c_right').tabs( {
		containerClass :"c_r_body",
		selectedClass :"on",
		hash :true
	});

	// \u4fee\u6539\u4fe1\u606f\u63d0\u4ea4\u52a8\u4f5c
	$('#form_edit').submit( function() {
		var form = $(this);
		var msg = $("#result");
		var data = form.serializeArray();
		msg.warning(TXT_POSTDATA);
		form.disabled();
		$.ajax( {
			type :"POST",
			url :form.attr("action") + "?act=edit",
			data :data,
			dataType :"json",
			success : function(ret) {
				msg.warning(ret.msg);

				if (ret.success) {

					var d = ret.url ? ret.url : "/";
					setTimeout( function() {
						window.location = d;
					}, 800)
				} else {
					form.enabled();
				}
			},
			error : function(res) {
				// alert("error");
			msg.warning(TXT_NETBUSY);
			form.enabled();
		}
		});
		return false;
	});

	function initSecure() {

		var a = $("#form_edit").validate( {
			errorPlacement : function(c, d) {
				c.appendTo(d.parent("td"))
			},
			showErrors : function() {
				var g = [];
				for ( var f = 0; this.errorList[f]; f++) {
					var d = this.errorList[f];
					var e = d.element;
					$(e).removeClass("success");
					if ($.inArray(e.id, [ "system", "question" ]) > -1) {
						e = $("#msg-question")[0];
						g.question = true
					}
					this.showLabel(e, d.message)
				}
				for ( var f = 0; this.successList[f]; f++) {
					var c = true;
					var e = this.successList[f];
					if ($.inArray(e.id, [ "system", "question" ]) > -1) {
						$(e).addClass("success");
						if (g.question) {
							c = false
						} else {
							e = e = $("#msg-question")[0]
						}
					}
					if (c) {
						this.showLabel(e)
					}
				}
			},
			success : function(c) {
				c.text("\u586b\u5199\u6b63\u786e").addClass("success");
				$("#" + c.attr("for")).addClass("success")
			},
			submitHandler : function(c) {
				saveSecure(c)
			},
			rules : {
				oldpwd : {
					required :true,
					rangeLength : [ 1, 16 ]
				},
				newpwd : {
					rangeLength : [ 5, 16 ],
					password :true
				},
				repwd : {
					required : function() {
						return !!$("#newpwd").val()
					},
					equalTo :"#newpwd"
				}

			},
			messages : {

				oldpwd : {
					required :"\u8bf7\u8f93\u5165\u73b0\u7528\u5bc6\u7801",
					rangeLength :String.format("\u5bc6\u7801\u957f\u5ea6{0}-{1}\u4f4d\u4e4b\u95f4")
				},
				newpwd : {
					rangeLength :String.format("\u5bc6\u7801\u957f\u5ea6{0}-{1}\u4f4d\u4e4b\u95f4"),
					password :"\u5bc6\u7801\u8fc7\u4e8e\u7b80\u5355\uff0c\u4e0d\u80fd\u7eaf\u6570\u5b57"
				},
				repwd : {
					required :"\u8bf7\u786e\u8ba4\u65b0\u5bc6\u7801",
					equalTo :"\u4e24\u6b21\u5bc6\u7801\u8f93\u5165\u4e0d\u4e00\u81f4"
				}

			}
		})
	}

}
